#studio 账号密码 cookie网址,sql 语句发送网址，轮询网址
emr_user = 'liuht'
emr_password = 'DtDream0209'
studio_get_cookie_url = 'http://10.45.14.66:30083/login?client_id=cbbapp&redirect_uri=https%3A%2F%2F10.45.12.126%3A30443%2Fcas%2Flogin%3Fclient_name%3DUaaClient%26service%3Dhttp%3A%2F%2F10.45.13.122%3A30104%2Flogin%2Fcas&response_type=code&scope=openid'
send_job_url = 'http://10.45.13.122:30104/api/v1/dtalent/ddp/worknode/instance?action=RUN&workspaceName=ykdsj_zxk_dev'
chk_job_stats_url_head = 'http://10.45.13.122:30104/api/v1/dtalent/ddp/worknode/instance/{}' \
                                      '?mode=manual&show=result&workspaceName=ykdsj_zxk_dev'
get_result_url = 'http://10.45.13.122:30104/api/v1/dtalent/ddp/worknode/instance/{}?mode=manual&show=log&workspaceName=ykdsj_zxk_dev&_=1587633285081'
#发送header 获取sql实例id
heard_sql_id = {
        "Accept": "application/json, text/plain, */*",
        "Accept-Encoding": "gzip, deflate",
        "Accept-Language": "zh-CN,zh;q=0.9",
        "Connection": "keep-alive",
        "Content-Length": "384",
        "Content-Type": "application/json;charset=UTF-8",
        "Cookie": "DataStudio__session=B7B7568D9B18AF27D4419FCC9606D725",
        "DNT": "1",
        "Host": "10.45.13.122:30104",
        "Origin": "http://10.45.13.122:30104",
        "Referer": "http://10.45.13.122:30104/view/index.html",
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36",
        "X-Requested-With": "XMLHttpRequest"
        }
data = {
        "actionDesc":"null",
        "actionId": "b0662396-f7ea-4b09-abfd-dfe77049ce07-action-SPARKSQL",
        "actionName": "lht_test",
        "actionType": "SPARKSQL",
        "preVersion": "temp-version",
        "version": "temp-version",
        "workspaceName":"ykdsj_zxk_dev",

        "actionConf":
        {
        "encryptPasswd": "",
        "isEncrypted":"false",
        "isTmpDecrypt":"false",
        "placeholders": [],
        "sql":"",
       },
        }
header2 = {"Accept": "application/json, text/plain, */*",
        "Accept-Encoding": "gzip, deflate",
        "Accept-Language": "zh-CN,zh;q=0.9",
        "Connection": "keep-alive",
        "Cookie": "DataStudio__session=CB408D3980A2EB185F9BED3805F4CD8F",
        "DNT": "1",
        "Host": "10.45.13.122:30104",
        "Referer": "http://10.45.13.122:30104/view/index.html",
        "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36",
        "X-Requested-With": "XMLHttpRequest"}

headers_3 = {"Accept": "application/json, text/plain, */*", "Accept-Encoding": "gzip, deflate",
             "Accept-Language": "zh-CN,zh;q=0.9",
             "Connection": "keep-alive",
             "Cookie": "DataStudio__session=CB408D3980A2EB185F9BED3805F4CD8F",
             "DNT": "1",
             "Host": "10.45.13.122:30104",
             "Referer": "http://10.45.13.122:30104/view/index.html",
             "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36",
             "X-Requested-With": "XMLHttpRequest"}
river_get_cookie_url = 'http://10.45.14.66:30083/login?client_id=cbbapp&redirect_uri=https%3A%2F%2F10.45.12.126%3A30443%2Fcas%2Flogin%3Fclient_name%3DUaaClient%26service%3Dhttp%3A%2F%2F10.45.14.10%3A51001%2Fdatariver%2Flogin&response_type=code&scope=openid'


win_2= {
"tenant": "36",
"X-XSRF-TOKEN": "",
"Cookie": ""
}
test_header1 = {}

clone_table={
    "tableName":"",
    "comment":"",
    "businessSystem":"",
    "updateMode":"",
    "updateCycle":"",
    "columns":[],
    "nodeMessage":{
        "nodeId":"c0c7d43c-e48e-4bc6-a837-c5b7a1a500a2"
    },
    "department":"",
    "connectionName":"ykdsj",
    "connectionType":"EMR",
    "sourceTableGuid":"",
    "mode":"form"
}
job_to_json={
	"job_name": "",
	"description": "",
	"destination_table": "",
	"dest_table_source": "ykdsj",
	"exception_table": "",
	"except_table_source": "ykdsj",
	"source_table_guid": "",
	"source_table_name": "",
	"work_space_name": "ykdsj",
	"clean_condition": {
		"data_element_effect": "false",
		"duplicate_config_effect": "true",
		"standard_config_effect": "true"
	},
	"duplicate_config": {
		"duplicate_key": [],
		"select_rule": "random"
	},
	"isUpdate": "false",
	"exception_table_partition": [],
	"source_table_partition": [],
	"dest_table_partition": [],
	"source_table_partition_flag": "false",
	"standard_config": [{
		"column_name": "rwid",
		"isCleanRule": "false",
		"nameEntity": [],
		"expressionWord": "",
		"column_type": "bigint",
		"keep_mode": "NULL"
	}, {
		"column_name": "objid",
		"isCleanRule": "false",
		"nameEntity": [],
		"expressionWord": "",
		"column_type": "bigint",
		"keep_mode": "NULL"
	}],
	"base_config": [{
		"column_name": [],
        "column_type": "bigint",
        "null_check_filter": {
			"status": "true"
		},
        "isNull": "true",
		"expressionWord": "",

	}],
	"dest_work_space": "",
	"exc_config": {}
}